-- GENERATED SPELL FOR [Raging Reef Crawler] --


function spell0_2236(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_2236', 630, 1)
end

function Sorts_2236(pUnit, Event)
local choix_sorts_2236 = math.random(0, 0)
if choix_sorts_2236 == 0 then
pUnit:RegisterEvent('spell0_2236', 1, 1)
end
end

function mob2236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2236', math.random(1500, 3000), 1)
end

function mob2236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2236, 1, 'mob2236_Action')
RegisterUnitEvent(2236, 2, 'mob2236_Leave')
RegisterUnitEvent(2236, 3, 'mob2236_Kill')
RegisterUnitEvent(2236, 4, 'mob2236_Die')
